package com.littcore.saap.assistant.service;

import java.util.List;
import java.util.Map;

import com.littcore.dao.page.IPageList;
import com.littcore.dao.ql.PageParam;
import com.littcore.saap.assistant.vo.QuickviewVo;

public interface IQuickviewService {
  
  /**
   * Save.
   *
   * @param tenantId the tenant id
   * @param moduleCode the module code
   * @param userId the user id
   * @param name the name
   * @param descr the descr
   * @param paramMap the param map
   * @return the integer
   */
  public Integer save(int tenantId, String moduleCode, int userId, String name, String descr, Map<String, String> paramMap);
  
  /**
   * Find by id.
   *
   * @param id the id
   * @return the quickview vo
   */
  public QuickviewVo findById(int id);
  
  /**
   * Find by module and user.
   *
   * @param tenantId the tenant id
   * @param moduleCode the module code
   * @param userId the user id
   * @return the list
   */
  public List<QuickviewVo> findByModuleAndUser(int tenantId, String moduleCode, int userId);

	/**
	 * List page.
	 *
	 * @param sql the sql
	 * @param pageParam the page param
	 * @return the i page list
	 */
	public IPageList listPage(String sql, PageParam pageParam);

}